package com.dl.user.mapper;




import com.dl.user.entity.User;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;


@Mapper
public interface UserMapper {

    @Select("SELECT * FROM users WHERE username = #{username}")
    User getUserByUsername(String username);

    @Insert("insert into users (username,passworld)"+"values(#{username},#{passworld})")
    boolean insert(User user);
}
